const {baseService} =require('../../baseService')
const model =require('../../../dao/model/model')
const beans =require('../../../beans/beansEnter')

/* 
记得在serviceEnter里注册一下
*/

/* 异常类 */
class tittleAndPointServiceError extends Error {
    constructor(error,message='tittleAndPointServiceError'){
        super()
        this.error = error
        this.message=message
    }
}


class tittleAndPointService extends baseService{

    static ins = new tittleAndPointService()



    static getIns (){
        if(this.ins){
            return this.ins
        }else{
            return new tittleAndPointService()
        }
    }

    constructor(){
        super(model.modelpointTittle,beans.tittleAndPointBean,tittleAndPointServiceError)
    }
}







module.exports={
    tittleAndPointService
}
